<?php
class Category extends AppModel 
{
	var $name = 'Category';
	var $useTable = 'Categories';
	
	var $hasAndBelongsToMany =array(
		'Post'=> array(
			'className' => 'Post',
			'joinTable'	=> 'categories_posts',
			'foreignKey'	=> 'category_id',
			'associationForeignKey'	=> 'post_id',
			'unique'	=> true,
		)
	);
}
?>